package com.flitsneak.designpatterns.behavioralpatterns.state.concretestate;

import com.flitsneak.designpatterns.behavioralpatterns.state.Context;
import com.flitsneak.designpatterns.behavioralpatterns.state.EmotionalState;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/7/18 17:45
 * @description
 */
public class PeriodState extends EmotionalState {
    @Override
    public void normalState() {
        super.context.setEmotionalState(Context.normalState);
        super.context.getEmotionalState().normalState();
    }

    @Override
    public void buddhaLikeState() {
        super.context.setEmotionalState(Context.buddhaLikeState);
        super.context.getEmotionalState().buddhaLikeState();
    }

    @Override
    public void periodState() {
        System.out.println("姨妈期中");
    }


    @Override
    public void excitedState() {
        super.context.setEmotionalState(Context.excitedState);
        super.context.getEmotionalState().excitedState();
    }
}
